I=-I ./include -I /usr/local/cern/root/include -I /usr/local/cern/geant4.9.3.p01/include -I /usr/local/CLHEP/include
L=-L/usr/local/cern/root/lib -L/usr/local/CLHEP/lib -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lGui -pthread -lm -ldl -rdynamic -L./lib -lRandom

all: main InlineStream PeakReference
	g++ -o bin/chiEval build/*.o $L

clean:
	rm -f build/*
	
main:
	g++ -c -o build/main.o main.cpp $I -std=c++0x
	
InlineStream:
	g++ -c -o build/InlineStream.o src/InlineStream.cpp $I
	
PeakReference:
	g++ -c -o build/PeakReference.o src/PeakReference.cpp $I
